/**********************************************
*  Namespace: Phx
*  Classes:   EulerIntegrator
*  Desc:      Euler integration
*  Author:    Vaios Kalpias-Ilias (C) 2008-2009
***********************************************/

#ifndef EULERINTEGRATOR_H
#define EULERINTEGRATOR_H

#include "Vector.h"

namespace Phx
{
	class EulerIntegrator
	{
	public:

		// euler integration
		template< typename T>
		static void Integrate(T& pos,
							  T& vel,
							  const T& acc,
							  float dt)
		{
			pos += vel * dt;
			vel += acc * dt;
		}
	private:

		EulerIntegrator();
		~EulerIntegrator();
		
	};
} // end of namespace Phx

#endif